import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import ImageGeneration from '../views/ImageGeneration.vue'
import GeneratedImage from '../views/GeneratedImage.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/image-generation',
    name: 'ImageGeneration',
    component: ImageGeneration
  },
  {
    path: '/generated-image',
    name: 'GeneratedImage',
    component: GeneratedImage,
    props: true
  },
  {
    path: '/my-works',
    name: 'my-works',
    component: GeneratedImage
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
